package com.example.management.system.service

import com.example.management.App
import org.junit.Test

import org.junit.Assert.*
import org.junit.runner.RunWith
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.boot.test.context.SpringBootTest
import org.springframework.context.annotation.Import
import org.springframework.data.redis.core.RedisTemplate
import org.springframework.data.redis.core.StringRedisTemplate
import org.springframework.test.context.junit4.SpringRunner

@RunWith(SpringRunner::class)
@SpringBootTest
@Import(App::class)
class MenuServiceTest {

    @Autowired
    lateinit var redisTemplate: StringRedisTemplate;

    @Autowired
    lateinit var menuService: MenuService;
    @Test
    fun getMenuDao() {
        val listPerms = menuService.listPerms(1)
        println(listPerms.size)
    }
}